package com.ch.client.controller;

import com.ch.client.openApi.service.ApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author CH
 * @data 2021/12/23
 */
@RestController
public class ClientController {
    @Autowired
    private ApiService apiService;

    @GetMapping("/a1")
    public Integer a1() {
        return apiService.d1();
    }

    @GetMapping("/a2")
    public Integer a2() {
        return apiService.d2();
    }

    @GetMapping("/a3")
    public Integer a3() {
        return apiService.d3();
    }

    @GetMapping("/a4")
    public Object a4() {
        System.out.println(apiService.d4());
        return 5;
    }
}
